<template>
	<view>
		<view class="mt-2  bg-white p-2 rounded-lg"  v-for="(item,index) in resdata" :key="index" @click="toShow(item.topicId)">
			<view class="flex align-start">
				<view class="flex-1 font30 text-ellipsis-2 line2">新闻标题</view>
				<image src="/static/photo.jpg" style="width: 200rpx; height: 120rpx;" class="flex-shrink ml-2 rounded-lg"></image>
			</view>
			<view class="flex align-center justify-between mt-1">
				<view class="flex align-center">
					<uni-icons type="contact" size="16" color="#cccccc"></uni-icons>
					<text class="font24 text-muted">小王</text>
				</view>
				<view class="flex align-center">
					<uni-icons type="eye" size="16" color="#cccccc"></uni-icons>
					<text class="font24 text-muted">111</text>
				</view>
				<view class="flex align-center">
					<uni-icons type="calendar" size="16" color="#cccccc"></uni-icons>
					<text class="font24 text-muted">222</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"one-pic-list",
		props:{
			resdata:{
				type:Array,
				default() {
				  return [];
				},
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			toShow(id){
				uni.navigateTo({
					url:'/pages/news/detail'
				})
			}
		}
	}
</script>

<style>

</style>